import Vue from 'vue';
import VueRouter from "vue-router";

Vue.use(VueRouter);

let projectRouterConfig = [
    {
        path: '/',
        redirect: '/dataView'
    },
    {
        path: '/dataView',//数据总览
        name: 'Data View',
        component:()=>import('./views/DBA.vue')
    },
    {
        path: '/review',//审核
        name: 'Data review',
        component:()=>import('./views/Review.vue')
    },
    {
        path: '/tipOff',//举报
        name: 'Tip off',
        component:()=>import('./views/TipOff.vue')
    },
    {
        path: '/permission',//用户
        name: 'Permission',
        component:()=>import('./views/Permission.vue')
    },
    {
        path: '/dbmanager',//数据库
        name: 'DBManger',
        component:()=>import('./views/DBManager.vue')
    },{
        path: '/article/:id',
        name: 'articleDetail',
        component: () => import('../../components/Article-Detail')
    },{
        path:"/article/:id",
        name:"Articledetail",
        component:()=>import("../../components/Article-Detail")
    },
]

export default new VueRouter({
    routes: projectRouterConfig
})
